package stream;
//账号
public class Bank {
    //账号，储户姓名，来自的城市
    private String no,name,city;
    //余额
    private double money;
    public Bank(){

    }

    public Bank(String no, String name, String city, double money) {
        this.no = no;
        this.name = name;
        this.city = city;
        this.money = money;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "账户{" +
                "no='" + no + '\'' +
                ", name='" + name + '\'' +
                ", city='" + city + '\'' +
                ", money=" + money +
                '}';
    }
}
